package com.note.user.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @projectName：wow-note
 * @package：com.note.user.config
 * @className：PasswordEncoderConfig
 * @author：热伊木
 * @email：uyevan@163.com
 * @description：密码加解密配置类
 * @date：2024-06-28 10:07
 * @version：1.0
 */

@Configuration
public class PasswordEncoderConfig {
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
